<%@ page language="java" contentType="text/html; charset=utf-8"	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<div class="page-content">
		<!--content-->
		<div class="containerTop">
			<a href="javascript:;" class="a-back" onclick="menuFullUrl('log/inquiry/page?curPage=1&pageSize=10');"><span class="icon-back"></span></a>
			<span>详情</span>
		</div>
		
		<div class="panel charger">
			<form id="updateForm" class="form-horizontal" role="form">
							
				<div class="form-group">
					<label  class="label_padding_left control-label">被查人姓名：</label>
					<label  class="label control-label">${result.data.userName }</label>
				</div>
				<div class="form-group">
					<label  class="label_padding_left control-label">被查人证件类型：</label>
					<label  class="label control-label">${result.data.cardName }</label>
				</div>
				<div class="form-group">
					<label  class="label_padding_left control-label">被查人证件号码：</label>
					<label  class="label control-label">${result.data.cardNum }</label>
				</div>
				<c:if test="${empty result.data.justiceVo }">
				  <div class="form-group">
					 <label  class="label_padding_left control-label">电话号码：</label>
					 <label  class="label control-label">${result.data.phone }</label>
				  </div>
				  <div class="form-group">
					<label  class="label_padding_left control-label">查询申请表：</label>
					<label  class="label control-label"><a href="javascript:void(0);" onclick="log.applyTbl('${result.data.id }')">查看申请表</a></label>
				  </div>
				</c:if>
				<c:if test="${! empty result.data.agentVo }">
				   <c:set var="agentVo" value="${result.data.agentVo}"></c:set>
				   <c:set var="otherImgUrl" value="${agentVo.otherImgUrl}"></c:set>
				   <div class="form-group">
					<label  class="label_padding_left control-label">代理人姓名：</label>
					<label  class="label control-label">${agentVo.agentName }</label>
					</div>
					<div class="form-group">
						<label  class="label_padding_left control-label">代理人证件类型：</label>
						<label  class="label control-label">${agentVo.agentCardName }</label>
					</div>
					<div class="form-group">
						<label  class="label_padding_left control-label">代理人证件号码：</label>
						<label  class="label control-label">${agentVo.agentCardNum }</label>
					</div>					
					<div class="form-group">
						<label  class="label_padding_left control-label">审批人：</label>
						<label  class="label control-label">${result.data.approverAccount }</label>
					</div>
				</c:if>
				
				<c:if test="${! empty result.data.justiceVo }">
				   <c:set var="justiceVo" value="${result.data.justiceVo}"></c:set>
				   <c:set var="otherImgUrl" value="${justiceVo.fileUrl}"></c:set>
				   <div class="form-group">
					<label  class="label_padding_left control-label">司法人员1姓名：</label>
					<label  class="label control-label">${justiceVo.justiceName1 }</label>
					</div>
					<div class="form-group">
						<label  class="label_padding_left control-label">司法人员2证件类型：</label>
						<label  class="label control-label">${justiceVo.justiceCardName1 }</label>
					</div>
					<div class="form-group">
						<label  class="label_padding_left control-label">司法人员1证件号码：</label>
						<label  class="label control-label">${justiceVo.justiceCardNum1 }</label>
					</div>
					<div class="form-group">
					<label  class="label_padding_left control-label">司法人员2姓名：</label>
					<label  class="label control-label">${justiceVo.justiceName2 }</label>
					</div>
					<div class="form-group">
						<label  class="label_padding_left control-label">司法人员2证件类型：</label>
						<label  class="label control-label">${justiceVo.justiceCardName2 }</label>
					</div>
					<div class="form-group">
						<label  class="label_padding_left control-label">司法人员2证件号码：</label>
						<label  class="label control-label">${justiceVo.justiceCardNum2 }</label>
					</div>
					<div class="form-group">
						<label  class="label_padding_left control-label">介绍函:</label>
						<label  class="label control-label"><img src="file/download?id=${justiceVo.letterImgUrl}&sid=${sid}"  width="200" height="105"/></label>
					</div>
					<div class="form-group">
						<label  class="label_padding_left control-label">介绍信:</label>
						<label  class="label control-label"><img src="file/download?id=${justiceVo.introImgUrl}&sid=${sid}"  width="200" height="105"/></label>
					</div>
					<div class="form-group">
						<label  class="label_padding_left control-label">承诺书:</label>
						<label  class="label control-label"><img src="file/download?id=${justiceVo.promiseImgUrl}&sid=${sid}"  width="200" height="105"/></label>
					</div>
					
				</c:if>
				
                <div class="form-group">
					<label  class="label_padding_left control-label">查询版式：</label>
					<label  class="label control-label">
					   <c:choose>
					        <c:when test="${result.data.format eq 1 }">
					          	个人简单版  
					        </c:when>
					        <c:when test="${result.data.format eq 2 }">
					          	个人明细版    
					        </c:when>
					        <c:when test="${result.data.format eq 4 }">
					          	   司法查询版 
					        </c:when>
					        <c:otherwise>
					        	 股指期货版
					        </c:otherwise>
					    </c:choose>
					</label>
				</div>
				<div class="form-group">
					<label  class="label_padding_left control-label">征信编号：</label>
					<label  class="label control-label">${result.data.reportNum }</label>
				</div>
				
				<div class="form-group">
					<label  class="label_padding_left control-label">查询类型：</label>
					<label  class="label control-label">
					    <c:choose>
					        <c:when test="${result.data.inquiryType eq 1 }">
					          	个人查询     
					        </c:when>
					        <c:when test="${result.data.inquiryType eq 2 }">
					          	代理查询     
					        </c:when>
					        <c:when test="${result.data.inquiryType eq 3 }">
					          	司法查询     
					        </c:when>
					        <c:otherwise>
					        
					        </c:otherwise>
					    </c:choose>
					</label>
				</div>
				
				<div class="form-group">
					<label  class="label_padding_left control-label">操作人IP：</label>
					<label  class="label control-label">${result.data.inquiryIp }</label>
				</div>
				
				<div class="form-group">
					<label  class="label_padding_left control-label">操作人：</label>
					<label  class="label control-label">${result.data.operatorAccount }</label>
				</div>
				
				<div class="form-group">
					<label  class="label_padding_left control-label">查询时间：</label>
					<label  class="label control-label"><fmt:formatDate value="${result.data.createTime }" pattern="yyyy-MM-dd HH:mm:ss" /></label>
				</div>
				
				 <div class="imgUploadBox">
					<ul>
						<c:if test="${ empty result.data.justiceVo }">
							<li>
							   <c:set var="cardImgUrls" value="${fn:split(result.data.cardImgUrl, ';')}" />
								<h5>查询人证件图片</h5>
								<c:if test="${! empty cardImgUrls}">
								  <c:forEach var="cardImgUrl" items="${ cardImgUrls}">
								    <p>
									  <img src="file/download?id=${cardImgUrl}&sid=${sid}"  width="200" height="105"/>
								    </p>
								  </c:forEach>
								</c:if>
							</li>
							<li>
								<h5>用户现场图片</h5>
								<c:if test="${! empty result.data.sceneImgUrl}">
								    <p>
									  <img src="file/download?id=${result.data.sceneImgUrl}&sid=${sid}"  width="200" height="200"/>
								    </p>
								</c:if>
							</li>
						</c:if>
						<c:if test="${!empty agentVo }">
							
							<li>
							    <c:set var="agentCardImgUrls" value="${fn:split(agentVo.agentCardImgUrl, ';')}" />
								<h5>代理人证件图片</h5>
								<c:if test="${! empty agentCardImgUrls}">
								  <c:forEach var="agentCardImgUrl" items="${ agentCardImgUrls}">
								    <p>
									  <img src="file/download?id=${agentCardImgUrl}&sid=${sid}"  width="200" height="105"/>
								    </p>
								  </c:forEach>
								</c:if>
							</li>
							
					    </c:if>
					    
					    <c:if test="${!empty justiceVo }">
							
							<li>
							    <c:set var="justiceIdcardImgUrl1s" value="${fn:split(justiceVo.justiceIdcardImgUrl1, ';')}" />
								<h5>司法人员1证件图片</h5>
								<c:if test="${! empty justiceIdcardImgUrl1s}">
								  <c:forEach var="justiceIdcardImgUrl1" items="${ justiceIdcardImgUrl1s}">
								    <p>
									  <img src="file/download?id=${justiceIdcardImgUrl1}&sid=${sid}"  width="200" height="105"/>
								    </p>
								  </c:forEach>
								</c:if>
							</li>
							
							<li>
							    <c:set var="justiceIdcardImgUrl2s" value="${fn:split(justiceVo.justiceIdcardImgUrl2, ';')}" />
								<h5>司法人员1证件图片</h5>
								<c:if test="${! empty justiceIdcardImgUrl2s}">
								  <c:forEach var="justiceIdcardImgUrl2" items="${ justiceIdcardImgUrl2s}">
								    <p>
									  <img src="file/download?id=${justiceIdcardImgUrl2}&sid=${sid}"  width="200" height="105"/>
								    </p>
								  </c:forEach>
								</c:if>
							</li>
							
							
					    </c:if>
						
						<%-- <li>
							<h5>身份证反面</h5>
							<p>
								<img src="<c:if test='${empty result.data.idcardBackUrl}'>resources/skins/img/img4.jpg</c:if><c:if test='${not empty result.data.idcardBackUrl}'>file/download?id=${result.data.idcardBackUrl}&sid=${sid}</c:if>" id="idcardBackUrl" width="313" height="175"/>
							</p>
							--%>
						</li>
	
					</ul>
				</div>
				<c:if test="${!empty otherImgUrl }">
					<div class="numbResult">
						其它资料图片列表
					</div>
					<c:set var="otherImgUrls" value="${fn:split(otherImgUrl, ';')}" />
					<c:forEach items="${otherImgUrls }" var ="otherImgUrl" varStatus="status">
					 	<img src="file/download?id=${otherImgUrl}&sid=${sid}"  width="200" height="105"/>
					 </c:forEach>				 
				</c:if>
			</form>
			
		</div>
		
		<div class="text-center opareBtm">
			<a href="javascript:void(0);" id="btnBack" onclick="menuFullUrl('log/inquiry/page?curPage=1&pageSize=10');" class="a-btn1 grey">返回</a>
		</div>
		<!--end content-->
		<div class="clearfix"></div>
</div>